<template>
  <div>
    <y-header></y-header>

    <div class="w store-content">
      <div class="gray-box">
        <div class="gallery-wrapper">
          <div class="gallery">
            <div class="thumb">
              <div class="big">
                <img :src="big" />
              </div>
            </div>
          </div>
        </div>
        <!--右边-->
        <div class="banner">
          <div class="sku-custom-title">
            <h4>标题</h4>
            <h6>
              <span>比知道</span>
              <span class="price"> <em>¥</em><i>100</i></span>
            </h6>
          </div>
          <div class="num">
            <span class="params-name">数量</span>
            <buy-num @edit-num="editNum"></buy-num>
          </div>
          <div class="buy">
            <y-button
              text="立刻下单"
              classStyle="main-btn"
              style="width: 145px;height: 50px;line-height: 48px"
            ></y-button>
            <y-button
              text="在线咨询"
              @btnClick="checkout(product.productId)"
              style="width: 145px;height: 50px;line-height: 48px;margin-left: 10px"
            ></y-button>
          </div>
        </div>
      </div>
      <!--产品信息-->
      <div class="item-info">
        <y-shelf title="经营信息">
          <div slot="content">
            <div class="img-item" v-if="productMsg">
              <div v-html="productMsg"></div>
            </div>
            <div class="no-info" v-else>
              该制作人暂无内容数据
            </div>
          </div>
        </y-shelf>
      </div>
    </div>

    <y-footer></y-footer>
  </div>
</template>

<script>
import YHeader from "@/common/header.vue";
import YFooter from "@/common/footer.vue";
import YButton from '@/components/YButton';
import YShelf from '@/components/shelf'

export default {
  components: { YHeader, YFooter,YButton,YShelf },
  data() {
    return {
      maker: {

      },

    };
  },
  mounted() {},
  methods: {}
};
</script>

<style lang="scss" scoped>
@import "../../assets/style/mixin";

.store-content {
  clear: both;
  width: 1220px;
  min-height: 600px;
  padding: 0 0 25px;
  margin: 0 auto;
}

.gray-box {
  display: flex;
  padding: 60px;
  margin: 20px 0;
  .gallery-wrapper {
    .gallery {
      display: flex;
      width: 540px;
      .thumb {
        .big {
          margin-left: 20px;
        }
        img {
          display: block;
          @include wh(440px);
        }
      }
    }
  }
  // 右边
  .banner {
    width: 450px;
    margin-left: 10px;
    h4 {
      font-size: 24px;
      line-height: 1.25;
      color: #000;
      margin-bottom: 13px;
    }
    h6 {
      font-size: 14px;
      line-height: 1.5;
      color: #bdbdbd;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .sku-custom-title {
      overflow: hidden;
      padding: 8px 8px 18px 10px;
      position: relative;
    }
    .params-name {
      padding-right: 20px;
      font-size: 14px;
      color: #8d8d8d;
      line-height: 36px;
    }
    .num {
      padding: 29px 0 8px 10px;
      border-top: 1px solid #ebebeb;
      display: flex;
      align-items: center;
    }
    .buy {
      position: relative;
      border-top: 1px solid #ebebeb;
      padding: 30px 0 0 10px;
    }
  }
}

.item-info {
  .gray-box {
    padding: 0;
    display: block;
  }
  .img-item {
    width: 1220px;
    // padding: 1vw;
    text-align: center;
    img {
      width: 100%;
      height: auto;
      display: block;
    }
  }
}

.no-info {
  padding: 200px 0;
  text-align: center;
  font-size: 30px;
}

.price {
  display: block;
  color: #d44d44;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-align: right;
  i {
    padding-left: 2px;
    font-size: 24px;
  }
}
</style>
